package com.tinem.platform.service.robot.im.core;

import com.tinem.platform.service.robot.im.jpa.entity.RbacUserMapping;
import org.springframework.context.ApplicationEvent;

public class Message extends ApplicationEvent {

    RbacUserMapping fromUser;
    String content;

    String clientId;
    String messageId;

    boolean end= false;

    public Message(RbacUserMapping fromUser,String source,String clientId,String messageId) {
        super(source);
        this.content = source;
        this.fromUser = fromUser;
        this.clientId = clientId;
        this.messageId = messageId;
    }

    public RbacUserMapping getFromUser() {
        return fromUser;
    }

    public void setFromUser(RbacUserMapping fromUser) {
        this.fromUser = fromUser;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getClientId() {
        return clientId;
    }

    public void setClientId(String clientId) {
        this.clientId = clientId;
    }

    public String getMessageId() {
        return messageId;
    }

    public void setMessageId(String messageId) {
        this.messageId = messageId;
    }

    public boolean isEnd() {
        return end;
    }

    public void setEnd(boolean end) {
        this.end = end;
    }
}
